package com.example.d_app;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class Welcome extends AppCompatActivity {

    private TextView tv_welcome;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        initView();
    }

    private void initView() {
        tv_welcome = (TextView) findViewById(R.id.tv_welcome);
        Intent intent=getIntent();
        tv_welcome.setText(intent.getStringExtra("username")+"欢迎使用订餐系统");
    }
}
